Skip to content

element.py: Compute cache key also for rdep without buildable callback#1457

Merged
juergbi merged 2 commits into
masterfrom
juerg/non-strict-cache-key
Mar 18, 2021
Merged

element.py: Compute cache key also for rdep without buildable callback#1457
juergbi merged 2 commits into
masterfrom
juerg/non-strict-cache-key

Conversation

@juergbi
Copy link
Copy Markdown
Contributor

@juergbi juergbi commented Mar 17, 2021

The reverse dependency may not be in the build queue yet and thus, the buildable callback may be None. However, it's still necessary to update the cache key in non-strict mode.

Fixes #1452.

Fixes: 8d9bf02 ("element.py: Stop computing cache keys when...")

@juergbi
Copy link
Copy Markdown
Contributor Author

juergbi commented Mar 17, 2021

As the issue is essentially a race condition, writing a reliable regression test for the test suite may no be straight forward, unfortunately. I was able to reproduce the issue manually with a clean freedesktop-sdk build, though, and I've verified the fix manually the same way.

juergbi added 2 commits March 18, 2021 21:12
Source cache status is not always available for non-build pipelines.
Don't call `_fetch_needed()` if `__assemble_scheduled` is `False`.
The reverse dependency may not be in the build queue yet and thus, the
buildable callback may be `None`. However, it's still necessary to
update the cache key in non-strict mode.

Fixes #1452.

Fixes: 8d9bf02 ("element.py: Stop computing cache keys when...")
@juergbi juergbi force-pushed the juerg/non-strict-cache-key branch from 51b6fe1 to 7b5a125 Compare March 18, 2021 20:12
@juergbi juergbi merged commit ae8ec94 into master Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG when building in non-strict mode

2 participants